{* Template Name:公共头部 *}
<!doctype html>
<html>
<head>
{template:header}
</head>
<body>
<header>
  <div class="box">
    <div class="clear"></div>
    <nav>
    <div class="name"><a href="{$host}">{$name}</a></div>
      <ul id="starlist">
        {module:navbar}
      </ul>
      <h2 id="mnavh"><span class="navicon"></span></h2>
    </nav>
  </div>
</header>
<div class="container">
  <div class="ph_margin"></div>
<!-- banner -->
<div class="banner_box">
  <ul class="banner">
    {php}
    $order = array('log_ViewNums'=>'DESC');
    $where = array(array('=','log_Status','0'));
    $array = $zbp->GetArticleList(array('*'),$where,$order,array(3),'');
    {/php}
    {foreach $array as $hotlist}
     <li><a href="{$hotlist.Url}" target="_blank">
    {if light_blog_thumbnail($hotlist) != ''}
     <img src="{light_blog_thumbnail($hotlist)}">
     {/if}
      <section><span>{$hotlist.Category.Name}</span>
        <p>{$hotlist.Title}</p>
      </section>
      </a></li>
    {/foreach}
  </ul>
</div>
<div class="clear"></div>
<div class="box">
  <div class="blogs">
    <ul>
      {foreach $articles as $article}
          {if $article.TopType}
          {template:post-istop}
          {else}
          {template:post-multi}
          {/if}
          {/foreach}
    </ul>
    {template:pagebar}
  </div>
  <aside class="rbox">
   <div class="hot_news">
      <h2 class="h_title">人气点击</h2>
      <ol start="1">
        {$hotArray = $zbp->GetArticleList(array('*'),array(array('=','log_Status','0')),array('log_ViewNums'=>'DESC'),array(10),'');}
        {foreach $hotArray as $hotArticle}
          <li><a href="{$hotArticle.Url}" title="" target="_blank">
          <p>{$hotArticle.Title}</p>
          </a><span>{$hotArticle.ViewNums}</span></li>
        {/foreach}
      </ol>
    </div>
     {if $type=='index'}
        {template:sidebar}
        {elseif $type=='category'}
        {template:sidebar2}
        {else}
        {template:sidebar6}
        {/if}
  </aside>
  <div class="clear"></div>
  <div class="links">
    <h2 class="h_title">友情链接</h2>
    <ul>
     {module:link}
    </ul>
  </div>
</div>
</div>
<footer>
  <div class="box">
    <div class="copyright">
      <p>{$copyright}</p>
      <p>Powered By {$zblogphphtml}</p>
    </div>
  </div>
</footer>

<a href="#" title="返回顶部" class="icon-top"></a>
</body>
</html>
